package com.gjzhao.fmmall.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @Description: 返回结果封装(简单的版本)
 * @Author: gjzhao
 * @Date Created in 2021-10-30 2:54 下午
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@ApiModel(value = "响应对象",description = "封装对响应对象信息")
public class ResponseResultVO {

    /**
     * 响应码值
     */
    @ApiModelProperty(value ="响应状态码值:10000表示成功，10001表示失败",name="code",dataType = "Integer")
    private long code;

    /**
     * 响应提示
     */
    @ApiModelProperty(value ="响应提示",name = "message",dataType = "String")
    private String message;

    /**
     * 响应数据
     */
    @ApiModelProperty(value ="响应提示",name = "message",dataType = "String")
    private Object data;
}
